import { http, jumpExport } from '@/utils/http/axios';

// 获取租户列表列表
export function List(params) {
  return http.request({
    url: '/sysTenant/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除租户列表
export function Delete(params) {
  return http.request({
    url: '/sysTenant/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑租户列表
export function Edit(params) {
  return http.request({
    url: '/sysTenant/edit',
    method: 'POST',
    params,
  });
}

// 修改租户列表状态
export function Status(params) {
  return http.request({
    url: '/sysTenant/status',
    method: 'POST',
    params,
  });
}

// 获取租户列表指定详情
export function View(params) {
  return http.request({
    url: '/sysTenant/view',
    method: 'GET',
    params,
  });
}

// 导出租户列表
export function Export(params) {
  jumpExport('/sysTenant/export', params);
}